package cn.glc.daily.life.model.dto.user.task;

import cn.glc.daily.life.model.enums.TaskPriorityEnums;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户任务查询
 *
 * @author simon
 * @date 2021/5/13 9:33
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Data
@ApiModel(value = "用户任务分页查询")
public class UserTaskQueryDto extends Page {

    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "任务状态 ture 完成 / false 未完成")
    private Boolean isDone;
    @ApiModelProperty(value = "推送开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pushStartTime;
    @ApiModelProperty(value = "推送结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date pushEndTime;
    @ApiModelProperty(value = "任务优先级(等级)", example = "默认值,无优先级0")
    private TaskPriorityEnums priority = TaskPriorityEnums.PRIORITY_ZERO;

}
